
const TOKEN_KEY = 'hm_mm_userToken'

const KEY = 'hm_mm_userInfo'
// export 按需导出
export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}
// 取token
export const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}
// 删除
export const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}
export const setUserInfo = (userInfo) => {
  localStorage.setItem(KEY, userInfo)
}
export const getUserInfo = () => {
  return localStorage.getItem(KEY)
}
